package com.example.myapplication001.slice.countdown;

import com.example.myapplication001.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import java.util.Timer;
import java.util.TimerTask;

//室外骑行数字2

public class ExerciseTwoOutRideAbilitySlice extends AbilitySlice {
    public Timer timer=new Timer(true);
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_two);
        //跳转到ExerciseOneOutRideAbilitySlice
        TimerTask timerTask =new TimerTask() {
            @Override
            public void run() {
                present(new ExerciseOneOutRideAbilitySlice(),new Intent());

            }
        };
        timer.schedule(timerTask,1000);


    }

    @Override
    public void onActive() {
        super.onActive();

    }

    @Override
    public void onForeground(Intent intent) {
        super.onForeground(intent);
    }

    @Override
    protected void onStop() {
        super.onStop();

    }
}
